package com.gm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Arrays;

/**
 * @Author Administrator
 * @Date 2020/6/16 8:59
 **/
@Controller
public class HelloController {
    @GetMapping("/hello")
    public String test(Model model){
        model.addAttribute("msg","Hello World");
        model.addAttribute("list", Arrays.asList("zhangsan","lisi","wangermazi","gebilaowang"));
        return "success";
    }
}
